Skip to content

Instantly share code, notes, and snippets.

@prof3ssorSt3v3
prof3ssorSt3v3 / file.js
Created June 26, 2022 15:14
Code from video on File and FileList objects
document.addEventListener('DOMContentLoaded', () => {
document.getElementById('inputFile').addEventListener('change', filesPicked);
document.getElementById('btnToggle').addEventListener('click', toggleInput);
document.getElementById('btnPick').addEventListener('click', askForFiles);
document.getElementById('btnInfo').addEventListener('click', showFileInfo);
});
function filesPicked(ev) {
//any time one or more files are picked in the file picker dialog

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@hf02
hf02 / connecting-neocities-to-discord.md
Last active September 24, 2026 03:04
Connecting a Neocities website to your Discord profile

Connecting a Neocities website to your Discord profile

This works for a Neocities website without a custom domain.

This should also work for a site with a custom domain, but I haven't tested it.

In the end, you'll get something like this:

image

@aleclarson
aleclarson / solid-2-versus-octane.md
Last active September 24, 2026 02:49
Solid 2 vs Octane

NOTICE: I've summarized the perspectives of Octane's and Solid's creators here, for anyone short on time: https://gist.github.com/aleclarson/829c10aa7d287944ef75e1c2a90bef06


I'm a React/Preact/Astro developer with an interest in other renderers. The two that have most caught my eye recently are Octane (from Dominic Gannaway of React Hooks / Svelte / Inferno fame) and Solid 2.

I asked ChatGPT to compare them with its own "Renderer DX Pillars", which I've shared below. This is its gut instinct, with very little hedging:

Pillar Winner Why
@Dowwie
Dowwie / prd_tod.txt
Created March 13, 2025 09:07
Product requirement document generation using LLM task oriented dialogue
This is an LLM-assisted workflow for creating a product requirement document using LLM assistance for task completion.
It keeps track of inputs for the template and works with the user to acquire them, finally generating a completed PRD
prompt when all slots are addressed.
credit: Ian Nuttall - https://gist.github.com/iannuttall/f3d425ad5610923a32397a687758ebf2
**System-Prompt for Facilitating Chat-Based PRD Creation**
@dmwyatt
dmwyatt / cursor-unofficial-api.md
Created April 5, 2026 21:20
Unofficial Cursor dashboard usage API documentation (reverse-engineered endpoints, auth, pagination)

Cursor Dashboard Unofficial API

These are undocumented endpoints used by the Cursor dashboard at https://cursor.com/dashboard/usage. They are not part of any public API and may change or break without notice.

Authentication

All endpoints use cookie-based session authentication. Requests without valid session cookies receive a 401 {"error": "not_authenticated"} response.

@mihaeu
mihaeu / okcupid-show-all-match-images-tampermonkey.js
Created October 11, 2023 11:39
[Tampermonkey] OkCupid - Show all match images
// ==UserScript==
// @name OkCupid - Show all match images
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Shows all profile images for all your matches, but if you want to find the profiles you still need premium. Look at this like extra motivation.
// @author anonymous
// @match https://www.okcupid.com/who-likes-you
// @icon https://www.google.com/s2/favicons?sz=64&domain=okcupid.com
// @grant none
// ==/UserScript==
@MuhammadSaim
MuhammadSaim / rarreg.key
Last active September 24, 2026 02:36
Step 1: Create a file called rarreg.key Step 2: Paste into the file the raw content of this gist Step 3: Go to Winrar install directory (by default => c:\ProgramFiles\WinRAR\ ) Step 4: Paste the rarreg.key into WinRAR directory Step 5: Enjoy
RAR registration data
WinRAR
Unlimited Company License
UID=4b914fb772c8376bf571
6412212250f5711ad072cf351cfa39e2851192daf8a362681bbb1d
cd48da1d14d995f0bbf960fce6cb5ffde62890079861be57638717
7131ced835ed65cc743d9777f2ea71a8e32c7e593cf66794343565
b41bcf56929486b8bcdac33d50ecf773996052598f1f556defffbd
982fbe71e93df6b6346c37a3890f3c7edc65d7f5455470d13d1190
6e6fb824bcf25f155547b5fc41901ad58c0992f570be1cf5608ba9
@cleidich
cleidich / LocalGroupPolicy.md
Last active September 24, 2026 02:33
Notes about Windows Local Group Policy & Local Security Policy

Notes about Local Group Policy & Local Security Policy

This Gist is a brain dump of a few facts that I've discovered about Microsft Windows' local Group Policy object, how it stores settings, and how it interacts with Local Security Policy settings.

Most of this information was confirmed on a system running Windows Server Datacenter 2022, but a lot of it is also applicable to older operating systems and Pro/Enterprise desktop flavors of Windows, too.

Note: This is not intended to be an exhaustive or even good overview of what Group Policy is, how Group Policy processing work, etc. The information below is very specific to some findings about local Group Policy processing as it pertains to some work I was doing. I'm purposefully omitting or glossing over large swaths of information about GP processing to keep this focused.

Basic Structure of Local Group Policy